#ifndef ASSIGNMENT_H
#define ASSIGNMENT_H

#include <QString>
#include <QDate>
#include <QDataStream>

using namespace std;

class Assignment
{
public:
    Assignment();
    Assignment(int number, QDate date);
    int getNumber() const;
    QDate getDate() const;
    void setNumber(int newNumber);
    void setDate(QDate date);

private:
    int number;
    QDate dueDate;
};
QDataStream &operator<<(QDataStream &out, const Assignment &data);
QDataStream &operator>>(QDataStream &in, Assignment &data);

#endif // ASSIGNMENT_H
